[#escape x as (x)!?html]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="atarm" />
<title>会员中心_${site.fullNameOrName}</title>
<link type="text/css" rel="stylesheet" href="_files/jspxcms.css"/>
<link href="_files/pic_change.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="${fore}/jquery.js" ></script>
<script language="javascript" type="text/javascript" src="${ctx}/vendor/My97DatePicker/cn_WdatePicker.js" ></script>
<script language="javascript" type="text/javascript" src="_files/common.js"></script>
<script language="javascript" type="text/javascript" src="${fore}/jquery.validation_zh_CN.js"></script>
<script type="text/javascript" src="${ctx}/vendor/ckeditor/ckeditor.js"></script>
<style type="text/css">
.input-table{width:95%;margin:10px 10px;border-collapse:collapse;}
.input-table td{padding:15px 2px; border:#ccc 1px solid;}
</style>
<script type="text/javascript">
$(function() {
  $("#validForm").validate();
});
</script>
</head>
<body>
[#include 'inc_header.html'/]
<div class="w960 center mt2">
   <dl class="tbox setting FlLeft">
    <dt class='light style="border:none;"'><strong>账号管理</strong></dt>
    <dd class='light'>
     <ul>
     	[#include 'inc_my_left.html'/]
     </ul>
    </dd>
   </dl>
   <div class="FlRight" style="width:760px;">
   <dl class="tbox" style="margin-top:0px;">
    <dt class='light'><strong>我要投稿</strong></dt>
    <dd class='light'>
    	<form id="validForm" action="[#if oprt=='edit']${ctx}/my/contribution/update.jspx[#else]${ctx}/my/contribution/create.jspx[/#if]" method="post">
			<input type="hidden" name="nextUrl" value="${ctx}/my/contribution.jspx"/>
			<input type="hidden" name="id" value="${bean.id}"/>
			<table class="input-table" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="15%">栏目：</td>
          <td width="85%">
            <select name="nodeId" class="required">
              [#list nodeList as node]
              [#if node.isContriPerm(user, groups)]
              [#if node.treeLevel > 0]<option value="${node.id}"[#if (bean.node.id)?? && node.id == bean.node.id] selected="selected"[/#if]>[#if node.treeLevel > 1][#list 2..node.treeLevel as i]--[/#list][/#if]${node.name}</option>[/#if]
              [/#if]
              [/#list]
            </select>
          </td>
        </tr>
        <tr>
          <td>标题：</td>
          <td><input type="text" name="title" value="${bean.title}" class="required" style="width:300px;"/></td>
        </tr>
		    <tr>
		      <td>正文：</td>
		      <td>
		        <textarea id="text" name="text">${bean.text}</textarea>		        
            <script type="text/javascript">
              CKEDITOR.replace("text",{
								skin: "kama",
                toolbar: "CmsPage",
                filebrowserUploadUrl: "${ctx}/upload_file.jspx",
                filebrowserImageUploadUrl: "${ctx}/upload_image.jspx",
                filebrowserFlashUploadUrl: "${ctx}/upload_flash.jspx"
              });
            </script>
		      </td>
		    </tr>
		    <tr><td colspan="2" align="center"><button type="submit" style="padding:5px;">提交</button></td></tr>
		  </table>
		</form>
    </dd>
   </dl>
   </div>
</div>
<div  style="height:190px;"></div>
[#include 'inc_footer.html'/]
</body>
</html>
[/#escape]